Process<TState>(Func<int, T, TState, T>, TState)

Method

Namespace: Ignis

Declared in: Ignis.IComponentCollection<T>


Iterates over each 'entity ID'-'component' pair using the supplied callback. The return value will be saved as the new component value. Passes an additional parameter to the callback which can be used to avoid heap allocations by passing the required variables through it.

Syntax

public void Process<TState>(
	Func<int, T, TState, T> action,
	TState state
)

Parameters

action

Callback to be called on each pair


Back to index